package org.example.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 袁龙林
 * @since 2024-08-18
 */
@Getter
@Setter
@TableName("blog")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分类ID
     */
    @TableField("type_id")
    private Integer typeId;

    /**
     * 博客标题
     */
    @TableField("title")
    private String title;

    /**
     * 注释
     */
    @TableField("content")
    private String content;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 博客首图
     */
    @TableField("first_picture")
    private String firstPicture;

    /**
     * 是否开启评论
     */
    @TableField("commentabled")
    private Boolean commentabled;

    /**
     * 是否开启赞赏
     */
    @TableField("appreciation")
    private Boolean appreciation;

    /**
     * 博客发布状态
     */
    @TableField("published")
    private Boolean published;

    /**
     * 是否推荐博客
     */
    @TableField("recommend")
    private Boolean recommend;

    /**
     * 是否开启转载声明
     */
    @TableField("share_statement")
    private Boolean shareStatement;

    /**
     * 版权
     */
    @TableField("copyright")
    private Integer copyright;

    /**
     * 浏览数
     */
    @TableField("views")
    private Integer views;

    /**
     * 评论数
     */
    @TableField("comment_count")
    private Integer commentCount;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
}
